<?php


namespace app\common\model;


class Buy extends \think\Model
{
    public function user(){
        return $this->belongsTo('user')->field('id,avatar,nickname');
    }
}